package com.xjh.mange.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjh.mange.model.Picture;
import com.xjh.mange.vo.PictureDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 徐佳辉
 * @date 2020/12/20 15:55
 */
@Mapper
@Repository
public interface PictureMapper extends BaseMapper<Picture> {

    List<PictureDto> selectAllByUserIdOrName(Page page, @Param("userId") int userId, @Param("name") String name);
}
